package com.plate.common.datasource.base;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

/**
 * @ClassName MyBaseServiceImpl
 * @Description ServiceImpl基类
 * @Author jiaxd
 * @Date 2023年10月22日 13:50
 * @Version 1.0
 */

public class MyBaseServiceImpl<M extends MyBaseMapper<T>, T> extends ServiceImpl<M, T> implements IMyBaseService<T> {

    @Override
    public int isSave(T t) {
        return baseMapper.insert(t);
    }

    @Override
    public void isUpdate(T t) {
        baseMapper.updateById(t);
    }

}
